package p.ithorns.tools.excel.model;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * WriteSheetData
 * 表数据
 *
 * @author HtL
 * @date 2024/7/24 20:29
 * @since 1.0.0
 */
@Getter
@Setter
public class WriteSheetData {

    /**
     * 表头名称
     */
    List<List<String>> headNames;

    /**
     * 单元格数据
     */
    List<List<Object>> cellValues;

    private WriteSheetData() {}


    public static WriteSheetData of(List<List<String>> headNames,
                                    List<List<Object>> cellValues) {
        WriteSheetData writeSheetData = new WriteSheetData();
        writeSheetData.headNames = headNames;
        writeSheetData.cellValues = cellValues;
        return writeSheetData;
    }

}